package com.gaeainfo.modules.alarm.collection.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created by Caven on 2018/7/16.
 */
@Entity
@Table(name="T_PERSON_INFO")
public class PersonEntity {

    private String personId;
    private String name;
    private String idCard;
    private String sex;
    private int age;
    private String residenceAddr;
    private String temporarilyAddr;
    private String ethnic;
    private String phone;
    private String focus;
    private String fugitive;

    @Id
    @GeneratedValue(generator = "assigned")
    @GenericGenerator(name = "assigned", strategy = "assigned")
    @Column(name = "PID")
    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "ID_CARD")
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Column(name = "SEX")
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Column(name = "AGE")
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Column(name = "RESIDENCE_ADDRESS")
    public String getResidenceAddr() {
        return residenceAddr;
    }

    public void setResidenceAddr(String residenceAddr) {
        this.residenceAddr = residenceAddr;
    }

    @Column(name = "TEMPORARILY_ADDRESS")
    public String getTemporarilyAddr() {
        return temporarilyAddr;
    }

    public void setTemporarilyAddr(String temporarilyAddr) {
        this.temporarilyAddr = temporarilyAddr;
    }

    @Column(name = "ETHNIC")
    public String getEthnic() {
        return ethnic;
    }

    public void setEthnic(String ethnic) {
        this.ethnic = ethnic;
    }

    @Column(name = "PHONE")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "IS_FOCUS")
    public String getFocus() {
        return focus;
    }

    public void setFocus(String focus) {
        this.focus = focus;
    }

    @Column(name = "IS_FUGITIVE")
    public String getFugitive() {
        return fugitive;
    }

    public void setFugitive(String fugitive) {
        this.fugitive = fugitive;
    }
}
